package com.henu.ocr.consumer;

import com.henu.ocr.CommonConstant;
import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.stereotype.Component;


//@Component
//public class RabbitMQConsumer {
//    @RabbitHandler
//    @RabbitListener(bindings = @QueueBinding(value = @Queue(CommonConstant.QUEUE_NAME),key = CommonConstant.ROUTING_KEY, exchange = @Exchange(CommonConstant.EXCHANGE_NAME)))
//    public void process(String msg) throws Exception{
//        System.out.println("RabbitMQConsumer收到消息：" + msg);
//    }
//}